﻿@model zichan.Models.OutOfRockModel
    @using zichan.Common
@{
    ViewBag.Title = "服务器下架";
}
@section Pagetitle{
    @AdminCommon.PageTitle("机柜管理", "下架")
}


@if (zichan.Common.PowerHelp.Check("Cabinet", "OutOfRock"))
{<div class="portlet">
        <div class="portlet-title">
            <div class="caption ">
                <i class="fa fa-table"></i>下架操作
            </div>
        </div>
        <div class="portlet-body">
            <div class="table-container">
                <div class="dataTables_wrapper dataTables_extended_wrapper no-footer">
                    @using (Html.BeginForm("OutOfRock", "Cabinet", FormMethod.Post, new { @class = "form-horizontal" }))
                    {<div class="form-body">
                            <input type="hidden" name="Id" value="@Model.Id" />
                            <div class="form-group ">
                                <label class="col-md-3 control-label">下架原因或备注:</label>
                                <div class="col-md-9">
                                    @Html.TextAreaFor(o => o.Remark, new { @class = "form-control input-large" })
                                </div>
                            </div>
                            <div class="row" style="margin-top:5px;">
                                <div class="col-md-offset-3 col-md-9">
                                    <button type="submit" class="btn green">下架</button>
                                    <a href="/Cabinet/Index" class="btn default">返回</a>
                                </div>
                            </div>
                        </div>}

                </div>
            </div>
        </div>
    </div>
}

    @Html.Action("OutOfRock_Part", "Common", new {id=Model.Id })

    @Html.Action("part_Detail", "Common", new { id = Model.Id })

@if (PowerHelp.Check("CabinetLog", "index"))
{
    @Html.Action("Index", "CabinetLog",new { cabinetId=Model.cabinetId })
}
<div class="row">
    <a href="/Cabinet/Index"></a>
</div>
